'use strict';

module.exports = app => {
    const {
        STRING,
        INTEGER
    } = app.Sequelize;
    const results_group = app.model.define('results_group',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"成绩分组ID"
        },
        class_name:{
            type:STRING,
            defaultValue:null,
            comment:"班级名字"
        },
        semester:{
            type:STRING,
            defaultValue:null,
            comment:"学期"
        },
        project:{
            type:STRING,
            defaultValue:null,
            comment:"项目"
        },
        course:{
            type:STRING,
            defaultValue:null,
            comment:"课程"
        },
        state:{
            type:STRING,
            defaultValue:"1",
            comment:"分组状态(1为正常0为停用)"
        }
    })
    results_group.associate = function () {
        
    }
}